#ifndef _MACRO_DEFINE__
#define _MACRO_DEFINE__

#if defined (__WIN32__) || defined (WIN32) || defined (_MSC_VER)
#define WIN32
#else
#include <bits/types.h>
#endif // !_MSC_VER


namespace mdk
{
    typedef signed char         INT8;
    typedef signed short        INT16;
    typedef signed int          INT32;
    typedef signed long         LONG;
    typedef signed long long    INT64;
    typedef unsigned char       UINT8;
    typedef unsigned short      UINT16;
    typedef unsigned int        UINT32;
    typedef unsigned long long  UINT64;
    typedef unsigned char       UCHAR;
    typedef unsigned short      USHORT;
    typedef unsigned int        UINT;
    typedef unsigned long       ULONG;
    typedef int                 BOOL;
    typedef int                 ARGINT;
    typedef void                VOID;
    typedef int                 STATUS;
    typedef unsigned char       BYTE;
    typedef unsigned long       DWORD;
    typedef unsigned short      WORD;
    typedef int                 INT;
	typedef char				int8;
	typedef unsigned char		uint8;
	typedef short				int16;
	typedef unsigned short		uint16;
	typedef int					int32;
	typedef unsigned int		uint32;
#ifdef WIN32
	typedef __int64				int64;
	typedef unsigned __int64	uint64;
#else
	typedef __int64_t		    int64;
	typedef __uint64_t      	uint64;
#endif

#define FALSE              0
#define TRUE               1
#define	IMPORT	           extern
#define	LOCAL	           static
#define MDK_OK             0
#define MDK_ERROR          -1
#define SUCCESS            MDK_OK
#define FAIL               MDK_ERROR
#define RET_OK             MDK_OK
#define RET_ERR            MDK_ERROR
#define RET_VOID
#define RET_SUCCESS        MDK_OK
#define RET_FAIL           MDK_ERROR
#define RET_EXCEPTIONAL    128 
#define RET_TIMEOUT        129  
#define RET_INDIDE_ERR     130  
#define RET_STAT_D         131 
#define ERR_TIMEOUT        RET_TIMEOUT
#define STAT_PATH_LEN      64
#define STAT_BUFFER_LEN    288
#define TV_USEC_VALUE      200
#define INVALUE_INAVLE     0xffffffffffffffffUL
#ifndef WIN32
#define MAX_PATH           1024
#endif // !MAX_PATH
}
#endif
